package com.stbu;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@Controller
@RequestMapping("/user")
public class MyController {
      //  @GetMapping("/toWelcome")
        @RequestMapping(value = "/login",method = RequestMethod.GET)
        public String login(@RequestParam String userName,@RequestParam String password){
            return "用户名"+userName+"密码"+password;
        }
        public void getParam(@RequestParam("u1") String u){
                System.out.println(u);
        }
}
